package exp03;

import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

public class A {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        Set<Integer> ints = new TreeSet<>();
        int n = cin.nextInt();
        for (int i = 0; i < n; i++) {
            int cur=cin.nextInt();
            //if(ints.contains(cur))continue;//O(logN)
            ints.add(cur);
        }
        for (Integer each : ints) {
            System.out.println(each);
        }

        cin.close();
    }
}